<template>
    <div>
        <div>text:{{text}}</div>
        <div>html:{{html}}</div>
        <div v-text="text"></div>
        <div v-html="html"></div>
        <span style="color: #ff4400">v-html 微信小程序不支持</span>
    </div>
</template>

<script>
    export default {
        name: 'vtextHtml',
        data() {
            return {
                text: '你好，VUE',
                html: '<h2 style="color:#42b983">你好，VUE</h2>'
            }
        }
    }
</script>
<style scoped>
</style>
